package com.authine.cloudpivot.ext.dto.kingDee;

import com.authine.cloudpivot.ext.enums.kingdee.BusinessType;
import io.swagger.annotations.Api;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;


@Api("业务数据关联凭证数据条件")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Schema(description = "业务数据关联凭证数据条件")
public class KingDeeBusiness implements Serializable {

    private static final long serialVersionUID = -1731404318507860717L;

    @Schema(description = "ID")
    private String id;

    @Schema(description = "平台业务ID")
    private String businessId;

    @Schema(description = "发票号啊")
    private String number;

    @Schema(description = "平台业务类型")
    private BusinessType businessType;

    @Schema(description = "创建时间")
    private Date time;

    @Schema(description = "附件数")
    private Integer attachments;

    @Schema(description = "账套名")
    private String accountName;

    public KingDeeBusiness(String businessId, String number, BusinessType businessType, Date time) {
        this.businessId = businessId;
        this.number = number;
        this.businessType = businessType;
        this.time = time;
    }

    public KingDeeBusiness(String businessId, String number, BusinessType businessType, Date time, Integer attachments) {
        this.businessId = businessId;
        this.number = number;
        this.businessType = businessType;
        this.time = time;
        this.attachments = attachments;
    }

    public KingDeeBusiness(String businessId, String number, BusinessType businessType, Date time, Integer attachments, String accountName) {
        this.businessId = businessId;
        this.number = number;
        this.businessType = businessType;
        this.time = time;
        this.attachments = attachments;
        this.accountName = accountName;
    }

}
